
function dialog_forget_(url, title, xy) {
	$('#dialog_add').dialog('option', 'buttons', {

		"关闭": function() {
			$(this).dialog("close");
		},

		"添加": function() {
			var form = $("#form_add")[0];

			var body = { };
			body.username = form.username.value;
			
			if (body.username == null || body.username == '') {
				alert("请输入员工姓名！");
				return false;
			}

			if (!confirm("确认是否添加？")) {
				return false;
			}
			
			$(this).dialog("close");

			$.post('emp.php?do=Emp.forgetPost', body, function(data) {
				$('#result').html(data);
			});
		}
	});

	dialog_add(url, title, xy);
}